﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace WatiNCF.Logging
{
    public static class Logger
    {
        static ILogger _logger;

        private static ILogger Instance
        {
            get
            {
                if (_logger == null)
                {
                    _logger = new DebugLogger();
                }
                return _logger;
            }
            set { _logger = value; }
        }

        public static void LogMessage(LogPriority priority, string message)
        {
            Instance.LogMessage(priority, message);
        }

        public static void LogMessage(LogPriority priority, string message, params object[] args)
        {
            Instance.LogMessage(priority, string.Format(message, args));
        }
    }
}
